package com.translate.web.api.controller;
import java.util.List;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.response.vo.ResponseModel;
import com.translate.vo.PayTypeVO;
import com.translate.web.service.IPayTypeService;
@RestController
@RequestMapping("payType")
public class PayTypeController{
	private IPayTypeService service;
	
	public PayTypeController(IPayTypeService service) {
		this.service = service;
	}
	
	/**
	 * 支付类型
	 * @return
	 */
	@PostMapping("listToPayTypes")
	public ResponseModel<List<PayTypeVO>> listToPayTypes() {
		return ResponseModel.<List<PayTypeVO>>success( 
				this.service.getListFromCache(PayTypeVO.class)
		);
	}

	
}